<?php
	include_once dirname(dirname(dirname(dirname(__FILE__)))).'/inc/bootConfig.php';
	include_once '../checkLogin.php';

	function userLimit($username,$limit){
		global $userGrade;
		$rs = User_User::getAdminUserInfo($username,'z_userGrade');
		if($userGrade[$rs]['limit']>$limit){
			jstop('对不起，你没有此项操作的权限,请联系系统管理员');
		}
	}
	